<include file="Public:header" />
<!--户型列表-->

<div class="pad_lr_10" >
    <form name="searchform"  method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
                <div class="explain_col">
                    &nbsp;&nbsp;
                    <a style="color: #008000" href="{:U('HouseType/index',array('house_id'=>$house['id'],'menuid'=>218))}">刷新当前页</a>  &nbsp;&nbsp;
                    当前编辑是&nbsp;&nbsp;
                    <a class="red" title="点击标题可刷新当前页面" href="{:U('HouseType/index',array('house_id'=>$house['id'],'menuid'=>218))}"><b>{$house.title}</b></a>&nbsp;&nbsp;户型信息</a> &nbsp;&nbsp;
                    <a class="exit_sub" href="{:U('House/index',array('menuid'=>150))}">返回楼盘列表</a>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:U('HouseType/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="title">户型名称</span></th>
                <th width=120><span data-tdtype="order_by" data-field="area">建筑面积</span></th>
                <th width=120><span data-tdtype="order_by" data-field="price">总价</span></th>
                <th align="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th align="60"><span data-tdtype="order_by" data-field="sale_status">销售状态</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="200">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" class="tdedit">{$val.name}</span>{$val.room}室{$val.hall}厅{$val.toilets}卫{$val.kitchen}厨{$val.balcony}阳台</td>
                <td align="center">{$val.area}平米</td>
                <td align="center">{$val.price}万元</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center" style="color: {$saleStatus[$val[sale_status]][parameter]}"><b>{$saleStatus[$val['sale_status']]['name']}</b></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
                <td align="center">
                    <a href="{:U('HouseType/edit',array('id'=>$val['id'],'house_id'=>$house_id,'menuid'=>$menuid))}">编辑</a> |
                    <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-msg="确定要删除 {$val.name} 吗？" data-uri="{:U('HouseType/delete',array('id'=>$val['id'],'menuid'=>$menuid))}">删除</a>
                </td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('HouseType/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>
    </div>
</div>
<include file="Public:footer" />
<js file="__STATIC__/js/calendar/WdatePicker.js" charset="utf-8" />
<script>
$('.J_cate_select').cate_select({top_option:lang.all});

</script>
</body>
</html>
